﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Linq.Expressions;
namespace YmtAuth.Domain.Model.User
{
    public class YmtUserSpecifications
    {
        /// <summary>
        /// 验证用户ID是否有效
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        public static bool VerifyUserId(int userId)
        {
            return userId > 0;
        }
        /// <summary>
        /// 查询规格
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        public static Expression<Func<YmtUser, bool>> Find(object userId)
        {
            return e => e._id == userId;
        }
    }
}
